#ifndef SK_FORM_BASE_H
#define SK_FORM_BASE_H

#include <QWidget>
#include <QSqlQuery>
#include <QMap>
#include <QSqlQueryModel>

namespace Ui {
class sk_form_base;
}

class sk_form_base : public QWidget
{
    Q_OBJECT

public:
    explicit sk_form_base(QWidget *parent = nullptr);
    ~sk_form_base();

    void closeEvent(QCloseEvent *event);

signals:
    void destroyW( QString );

private slots:
    void on_pb_save_reg_clicked();

    void on_pb_save_fee_type_clicked();

    void on_pb_exit_clicked();

    void on_pb_fresh_reg_clicked();

    void on_tv_reg_type_clicked(const QModelIndex &index);

    void on_tv_reg_type_doubleClicked(const QModelIndex &index);

    void on_tb_search_icpc_clicked();

    void on_pb_fresh_fee_clicked();

    void on_tv_fee_type_clicked(const QModelIndex &index);

    void on_tv_fee_type_doubleClicked(const QModelIndex &index);

private:
    Ui::sk_form_base *ui;

    QSqlQuery *qrm,*qrmt, *qro, *qrot;
    //QSqlQueryModel mdList ;//

    QSqlQueryModel *md_reg_level;
    QSqlQueryModel *md_fee_type;

};

#endif // SK_FORM_BASE_H
